#! /usr/bin/python
# Filename: str_method.py

name = 'Swaroop';

if name.startswith('Swa'):
	print 'Yes, the string starts with "Swa"';
if 'a' in name:
	print 'Yes, it contains the string "a"';
if name.find('war')	!= -1:
	print 'Yes,the string "war" in the string';

delimiter = '_';
mylist = ['apple','carrot','banana'];
str = delimiter.join(mylist);
print str;

